package com.hmy.park.mapper;

import com.hmy.park.domain.HmyPhouse;

import java.util.List;

/**
 * @Author ljy
 * @Date 2024/1/30 16:52
 * @description: 栏舍类型
 * @Title: PhouseMapper
 * @Package com.hmy.park.mapper
 */
public interface PhouseMapper {
    /**
     * @param hmyPhouse
     * @return java.util.List<com.hmy.park.domain.HmyPhouse>
     * @description 查询栏舍
     * @author ljy
     * @date 2024/1/30 16:55:51
     */
    List<HmyPhouse> findPhouseList(HmyPhouse hmyPhouse);

    /**
     * @param phouseId
     * @return com.hmy.park.domain.HmyPhouse
     * @description 根据id查询
     * @author ljy
     * @date 2024/1/31 18:44:14
     */
    HmyPhouse findPhouseById(Long phouseId);

    /**
     * @param phouseId
     * @return com.hmy.park.domain.HmyPhouse
     * @description 根据编码查询
     * @author ljy
     * @date 2024/1/31 18:44:14
     */
    HmyPhouse findPhouseByCoud(String phouseCode);


    /**
     * @param hmyPhouse
     * @return
     * @description 添加栏舍
     * @author ljy
     * @date 2024/1/30 16:55:59
     */
    Integer savePhouse(HmyPhouse hmyPhouse);

    /**
     * @param phouseId
     * @return java.lang.Integer
     * @description 删除栏舍
     * @author ljy
     * @date 2024/1/30 16:56:58
     */
    Integer delPhouse(Long phouseId[]);

    /**
     * @param hmyPhouse
     * @return java.lang.Integer
     * @description 修改栏舍
     * @author ljy
     * @date 2024/1/30 16:57:36
     */
    Integer updatePhouse(HmyPhouse hmyPhouse);
    

}
